<template>
	<view class="content">
		<!-- <uni-nav-bar left-icon="back" @clickLeft="clickLeft" title="活动中心"></uni-nav-bar> -->
		<uni-search-bar :radius="100" @confirm="search" @input="input"></uni-search-bar>
		<activity-list :activityList="activityList"></activity-list>
	</view>
</template>

<script>
	import uniNavBar from "@/components/uni-nav-bar/uni-nav-bar.vue"
	import uniSearchBar from '@/components/uni-search-bar/uni-search-bar.vue'
	import activityList from '../components/activity-list.vue'
	export default {
		components: {
			uniNavBar,
			uniSearchBar,
			activityList
		},
		data() {
			return {
				TabCur: 0,
				activityList: [{
					title: '2020年爱家行动同济华城站',
					img: 'https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/cbd.jpg',
					time: '2020年6月11日-7月15',
					address: '上海融创同济华城',
					attention: 126,
					isCheck: 1,
					id: '0',
				}, {
					title: '2020年爱家行动同济华城站',
					img: 'https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/cbd.jpg',
					time: '2020年6月11日-7月15',
					address: '上海融创同济华城',
					attention: 1261,
					isCheck: 0,
					id: '1',
				}, {
					title: '2020年爱家行动同济华城站',
					img: 'https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/cbd.jpg',
					time: '2020年6月11日-7月15',
					address: '上海融创同济华城',
					attention: 1226,
					isCheck: 0,
					id: '2',
				}]
			};
		},
		methods: {
			clickLeft: function() {
				uni.navigateBack()
			},
			clickRight: function() {
				uni.scanCode({
					success: function(res) {
					}
				});
			}
		}
	};
</script>
